var cmTool={
	// block:Array fun
	isArray:function(obj){
    	return Object.prototype.toString.call(obj)==='[object Array]';
	},
	uniq:function(arr){
		var ob =[];
		for(var item of arr){
			if(ob.indexOf(item)!==-1) ob.push(item);
		}
		return ob;
	}
	// block:Dom Class fun
	hasClass:function(dom,className){
		return new RegExp("(\\s|^)"+className+"(\\s|$)","g").test(dom.className);	
	},
	addClass:function(dom,className){
		dom.className+=" "+className;
		return 	dom;
	},
	rmClass:function(dom,className){
		dom.className.replace(new RegExp("(\\s|^)"+className+"(\\s|$)","g")," ");
		return dom;	
	}